<?php 
/* SVN FILE: $Id$ */
/* PostTerm Test cases generated on: 2009-11-08 14:33:22 : 1257690802*/
App::import('Model', 'PostTerm');

class PostTermTestCase extends CakeTestCase {
	var $PostTerm = null;
	var $fixtures = array('app.post_term', 'app.post');

	function startTest() {
		$this->PostTerm =& ClassRegistry::init('PostTerm');
	}

	function testPostTermInstance() {
		$this->assertTrue(is_a($this->PostTerm, 'PostTerm'));
	}

	function testPostTermFind() {
		$this->PostTerm->recursive = -1;
		$results = $this->PostTerm->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('PostTerm' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>